//
// Created by vivi on 06/07/2017.
//
#pragma once

#include <cstdlib>
#include <ctime>

unsigned rand_range(unsigned s, unsigned e) {
	return rand() % (e - s + 1) + s;
}

float rand_float() {
	return rand() / static_cast<float>(RAND_MAX);
}

float rand_float(float min, float max) {
	return min + rand_float() * (max - min);
}